import request from '@/api/request'

export default {
  /**
   * Login
   * @param {*} params
   */
  login(data) {
    return request({
      url: '/user/login',
      method: 'post',
      data
    })
  },

  /**
   * get uesrinfo
   * @param {*} data
   */
  getInfo(data) {
    return request({
      url: '/user/login',
      method: 'get',
      params: data
    })
  },

  /**
   * login out
   */
  logout() {
    return request({
      url: '/user/logout',
      method: 'post'
    })
  }
}
